home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DS-CD ROM 2 1993 August
/
DS CD-ROM 2.Ausgabe (August 1993).iso
/
utility
/
ds0360
/
pb32.exe
/
PBD.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-10-27
|
20KB
|
794 lines
@echo off
rem ##############################################################
rem ## ##
rem ## PROFIBATCH - DEVELOPER ##
rem ## ##
rem ## Version 1.0 ##
rem ## ##
rem ## (C) 1991 by W. Andreas Pollack. Alle Rechte vorbehalten. ##
rem ##############################################################
goto variablen
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
rem Subroutinen
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
REM -----------------Löscht nur die obere Hälfte
:refresh1
set menu=main
REM pbdtxt.1,-X1,-Y1,-H3,-V0,-R0,-O
REM pbdtxt.2,-X3,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.3,-X6,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.4,-X13,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.5,-X20,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.6,-X26,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.7,-X36,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.8,-X46,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.9,-X52,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.10,-X75,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.11,-X1,-Y2,-R0,-O
USELIB 1-11 PBD
goto main
REM ------------------löscht alles
:refresh2
set menu=main
REM pbdtxt.12,-X1,-Y1,-H3,-V0,-R0,-O
REM pbdtxt.13,-X3,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.14,-X6,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.15,-X13,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.16,-X20,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.17,-X26,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.18,-X36,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.19,-X46,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.20,-X52,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.21,-X75,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.22,-X1,-Y2,-R0,-O
USELIB 12-22 PBD
goto main
REM ---------------löscht alles, geht zum letzten Menü
:lastmenu
REM pbdtxt.23,-X1,-Y2,-R0,-O
USELIB 23 PBD
set f=
goto %menu%
REM -----setzt die Standardkonfiguration wenn PBDCONFG.BAT nicht existiert
:default
set ed=EDITOR
set qn=NIX.Q
set ln=NIX.LIB
set pn=NIX.BAT
set xn=NONAME
set sw=ON
set menu=≡
goto start
REM ------wartet bei geswapptem Screen
:wait
echo Drücken Sie eine Taste um zum PROFIBATCH - Developer zurückzukehren...
REM -NDY,-X80,-Y25,-V0,-R0
USELIB 24 PBD
set menu=main
goto start
rem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
rem Variablen
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
:variablen
set dy=▒
rem -----------------Konfigurieren
if "%1" == "" goto noargs
if not exist %1 goto noargs
set cn=%1
goto config
:noargs
set cn=PBDCONFG.BAT
if not exist %cn% goto default
:config
call %cn%
set menu=≡
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
rem Hier geht's los...
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
:start
REM -F,-C
REM pbdtxt.26,-X1,-Y1,-H3,-V0,-R0,-O
REM pbdtxt.27,-X3,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.28,-X6,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.29,-X13,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.30,-X20,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.31,-X26,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.32,-X36,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.33,-X46,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.34,-X52,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.35,-X75,-Y1,-H3,-V15,-R0,-O
REM pbdtxt.36,-X1,-Y2,-R0,-O
REM pbdtxt.37,-X1,-Y25,-H3,-V0,-R0,-O
REM pbdtxt.38,-X3,-Y25,-H3,-V15,-R0,-O
REM pbdtxt.39,-X11,-Y25,-H3,-V15,-R0,-O
REM pbdtxt.40,-X19,-Y25,-H3,-V15,-R0,-O
REM pbdtxt.41,-X27,-Y25,-H3,-V15,-R0,-O
REM pbdtxt.42,-X35,-Y25,-H3,-V15,-R0,-O
REM pbdtxt.43,-X43,-Y25,-H3,-V15,-R0,-O
REM pbdtxt.44,-X51,-Y25,-H3,-V15,-R0,-O
REM pbdtxt.45,-X59,-Y25,-H3,-V15,-R0,-O
REM pbdtxt.46,-X67,-Y25,-H3,-V15,-R0,-O
REM pbdtxt.47,-X76,-Y25,-H3,-V15,-R0,-O
USELIB 25-47 PBD
goto %menu%
rem +++++++++++++++++++++++++++++++++++++++++++
rem Hauptmenü
rem +++++++++++++++++++++++++++++++++++++++++++
:main
set menu=main
REM -NDY,-X80,-Y24,-R0
USELIB 48 PBD
if errorlevel 254 goto yesend
if errorlevel 241 goto main
if errorlevel 240 goto ≡
if errorlevel 116 goto main
if errorlevel 115 goto status
if errorlevel 114 goto run
if errorlevel 112 goto main
if errorlevel 111 goto options
if errorlevel 105 goto main
if errorlevel 104 goto help
if errorlevel 103 goto main
if errorlevel 102 goto file
if errorlevel 101 goto edit
if errorlevel 100 goto dos
if errorlevel 99 goto compile
if errorlevel 11 goto main
if errorlevel 10 goto index
if errorlevel 9 goto shell
if errorlevel 8 goto makeboth
if errorlevel 7 goto editx
if errorlevel 6 goto editpgm
if errorlevel 5 goto xstart
if errorlevel 4 goto batstart
if errorlevel 3 goto yesend
if errorlevel 2 goto loadconf
if errorlevel 1 goto helpONhelp
goto main
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
rem Die Menüs in der Header-Zeile (doppelter Rahmen!)
rem +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
REM ---------------Menü ≡
:≡
REM pbdtxt.49,-X3,-Y1,-H7,-V0,-R0,-O
REM pbdtxt.50,-H7,-V0,-R1,-S,-Z5
USELIB 49-50 PBD
goto refresh1
REM --------------Menü FILE
:file
set menu=file
REM pbdtxt.51,-X6,-Y1,-H7,-V0,-R0,-O
REM pbdtxt.52,-U File ,-X6,-Y2,-H7,-V0,-S,-O,-M
USELIB 51-52 PBD
if errorlevel 254 goto refresh1
if errorlevel 4 goto yesend
if errorlevel 3 goto shell
if errorlevel 2 goto renam
if errorlevel 1 goto open
REM --------------Menü EDIT
:edit
set menu=edit
REM pbdtxt.53,-X13,-Y1,-H7,-V0,-R0,-O
REM pbdtxt.54,-U Edit ,-X13,-Y2,-H7,-V0,-S,-O,-M
USELIB 53-54 PBD
if errorlevel 254 goto refresh1
if errorlevel 3 goto editq
if errorlevel 2 goto editpgm
if errorlevel 1 goto editx
REM --------------Menü RUN
:run
set menu=run
REM pbdtxt.55,-X20,-Y1,-H7,-V0,-R0,-O
REM pbdtxt.56,-U Run ,-X20,-Y2,-H7,-V0,-S,-O,-M
USELIB 55-56 PBD
if errorlevel 254 goto refresh1
if errorlevel 5 goto libstart
if errorlevel 4 goto xstart
if errorlevel 3 goto quellstart
if errorlevel 2 goto args
if errorlevel 1 goto batstart
REM -------------------Menü COMPILE
:compile
set menu=compile
REM pbdtxt.57,-X26,-Y1,-H7,-V0,-R0,-O
REM pbdtxt.58,-U Compile ,-X26,-Y2,-H7,-V0,-S,-O,-M
USELIB 57-58 PBD
if errorlevel 254 goto refresh1
if errorlevel 5 goto append
if errorlevel 4 goto expand
if errorlevel 3 goto makeboth
if errorlevel 2 goto build
if errorlevel 1 goto convert
REM -------------------------Menü OPTIONS
:options
set menu=options
REM pbdtxt.59,-X36,-Y1,-H7,-V0,-R0,-O
REM pbdtxt.60,-U Options ,-X36,-Y2,-H7,-V0,-S,-O,-M
USELIB 59-60 PBD
if errorlevel 254 goto refresh1
if errorlevel 4 goto newscreen
if errorlevel 3 goto loadconf
if errorlevel 2 goto editconf
if errorlevel 1 goto makeconf
REM -----------------Menü DOS
:dos
set menu=dos
REM pbdtxt.61,-X46,-Y1,-H7,-V0,-R0,-O
REM pbdtxt.62,-U DOS ,-X46,-Y2,-H7,-V0,-S,-O,-M
USELIB 61-62 PBD
if errorlevel 254 goto refresh1
if errorlevel 6 goto copycon
if errorlevel 5 goto umbenennen
if errorlevel 4 goto formatieren
if errorlevel 3 goto kopieren
if errorlevel 2 goto programm
if errorlevel 1 goto shell
REM -------------------Menü STATUS
:status
REM pbdtxt.63,-X52,-Y1,-H7,-V0,-R0,-O
REM pbdtxt.64,-U Die momentanen Einträge ,-H7,-V0,-R1,-S,-O
REM -NPN,-X22,-Y10,-H7,-V15,-R0,-O
REM -NLN,-X22,-Y11,-H7,-V15,-R0,-O
REM -NQN,-X22,-Y12,-H7,-V15,-R0,-O
REM -NED,-X22,-Y13,-H7,-V15,-R0,-O
REM -NXN,-X22,-Y14,-H7,-V15,-R0,-O
REM -NCN,-X22,-Y15,-H7,-V15,-R0,-O
REM -NSW,-X22,-Y16,-H7,-V15,-R0,-O
USELIB 63-71 PBD
:stokay
REM pbdtxt.72,-X53,-Y14,-H7,-V15,-R0
USELIB 72 PBD
if errorlevel 133 goto refresh2
if errorlevel 132 goto statusinput
if errorlevel 10 goto refresh2
if errorlevel 9 goto standern
goto refresh2
:standern
REM pbdtxt.73,-X65,-Y14,-H7,-V15,-R0
USELIB 73 PBD
if errorlevel 14 goto refresh2
if errorlevel 13 goto statusinput
if errorlevel 9 goto stokay
goto refresh2
:statusinput
REM -IPN,-B53,-X22,-Y10,-V15,-R0,-O
REM -ILN,-B53,-X22,-Y11,-V15,-R0,-O
REM -IQN,-B53,-X22,-Y12,-V15,-R0,-O
REM -IED,-B53,-X22,-Y13,-V15,-R0,-O
REM -IXN,-B12,-X22,-Y14,-V15,-R0,-O
REM -ICN,-B12,-X22,-Y15,-V15,-R0,-O
REM -ISW,-B3,-X22,-Y16,-V15,-R0,-O
USELIB 74-80 PBD
goto status
REM -------------------MENÜ HELP
:help
set menu=help
REM pbdtxt.81,-X75,-Y1,-H7,-V0,-R0,-O
REM pbdtxt.82,-U Help ,-X61,-Y2,-H7,-V0,-S,-M
USELIB 81-82 PBD
if errorlevel 254 goto refresh1
if errorlevel 2 goto index
if errorlevel 1 goto helpONhelp
rem ++++++++++++++++++++++++++++++++++++++++
rem Info - Texte
rem +++++++++++++++++++++++++++++++++++++++
REM --------------ENDABFRAGE
:yesend
REM pbdtxt.83,-H4,-V0,-S,-O
REM pbdtxt.84,-X29,-Y13,-H4,-V15,-R0
USELIB 83-84 PBD
if errorlevel 107 goto refresh2
if errorlevel 106 goto end
if errorlevel 14 goto refresh2
if errorlevel 13 goto end
if errorlevel 10 goto refresh2
if errorlevel 9 goto end_no
goto refresh2
:end_no
REM pbdtxt.85,-X46,-Y13,-H4,-V15,-R0
USELIB 85 PBD
if errorlevel 107 goto refresh2
if errorlevel 106 goto end
if errorlevel 10 goto refresh2
if errorlevel 9 goto yesend
goto refresh2
REM ----------------HELP / HILFE FÜR HILFE
:helpONhelp
REM pbdtxt.86,-U HILFE für die HILFE-Funktion ,-H3,-V0,-S
USELIB 86 PBD
goto %menu%
REM ----------------HELP / INDEX
:index
call index.bat
goto refresh2
rem ++++++++++++++++++++++++++++++++++++++
rem Prozeduren
rem ++++++++++++++++++++++++++++++++++++++
REM ---------------FILE / PROGRAMM BENENNEN
:open
REM -IPN,-B50,-U Geben Sie Pfad und Dateinamen an ,-H7,-V0,-S
USELIB 87 PBD
goto refresh1
REM --------------FILE / PROGRAMM UMBENENNEN
:renam
REM pbdtxt.88,-U Geben Sie den neuen Namen ein ,-H7,-V0,-S,-O
REM -NPN,-X21,-Y12,-H7,-V15,-R0,-O
REM -IPN1,-B52,-X21,-Y14,-R0,-O
USELIB 88-90 PBD
if errorlevel 254 goto lastmenu
if "%pn1%" == "" goto lastmenu
if not exist %pn% goto existerr
ren %pn% %pn1%
set pn=%pn1%
set pn1=
goto refresh2
REM -------------------EDIT / PROGRAMM
:editpgm
cls
command /c %ed% %pn%
set menu=main
goto start
REM --------------------EDIT / QUELLDATEI
:editq
cls
command /c %ed% %qn%
set menu=main
goto start
REM --------------------EDIT / X-DATEI
:editx
REM -IXN,-B52,-U Geben Sie einen Dateinamen ein ,-H7,-V0,-R1,-S
USELIB 91 PBD
if errorlevel 254 goto %menu%
cls
command /c %ed% %xn%
set menu=main
goto start
REM ------------RUN / PROGRAMM STARTEN
:batstart
set al=?
cls
command /c %pn% %al%
set menu=main
goto start
REM --------------RUN / ARGUMENTE
:args
REM -IAL,-B60,-U Geben Sie die Argumentliste ein ,-H7,-V0,-R1,-S
USELIB 92 PBD
goto %menu%
REM -----------RUN / QUELLDATEI STARTEN
:quellstart
if not exist %qn% goto quellinput
if "%sw%" == "ON" cls
if "%sw%" == "ON " cls
if "%sw%" == "on" cls
if "%sw%" == "on " cls
command /c pb %qn% -q
if "%sw%" == "ON" goto wait
if "%sw%" == "ON " goto wait
if "%sw%" == "on" goto wait
if "%sw%" == "on " goto wait
goto refresh2
:quellinput
REM -IQN,-B50,-U Geben Sie die Quelldatei ein ,-H7,-V0,-R1,-S
USELIB 93 PBD
if errorlevel 254 goto %menu%
goto quellstart
REM ------------------RUN / X-DATEI STARTEN
:xstart
if not exist %xn% goto xinput
REM -IAL,-B65,-U Geben Sie die Argumente ein ,-H7,-V0,-R1,-S
USELIB 94 PBD
if errorlevel 254 goto %menu%
if "%sw%" == "ON" cls
if "%sw%" == "ON " cls
if "%sw%" == "on" cls
if "%sw%" == "on " cls
command /c pb %xn% %al%
if "%sw%" == "ON" goto wait
if "%sw%" == "ON " goto wait
if "%sw%" == "on" goto wait
if "%sw%" == "on " goto wait
goto refresh2
:xinput
REM -IXN,-B50,-U Geben Sie den Dateinamen ein ,-H7,-V0,-R1,-S
USELIB 95 PBD
if errorlevel 254 goto %menu%
goto xstart
REM -----------------RUN / BIBLIOTHEK STARTEN
:libstart
if not exist %ln% goto lninput
REM -ITMP,-B40,-U Welche Einträge? ,-H7,-V0,-R1,-S
USELIB 96 PBD
if errorlevel 254 goto %menu%
if "%tmp%" == "" set tmp=1-
if "%sw%" == "ON" cls
if "%sw%" == "ON " cls
if "%sw%" == "on" cls
if "%sw%" == "on " cls
command /c USELIB %tmp% %ln%
if "%sw%" == "ON" goto wait
if "%sw%" == "ON " goto wait
if "%sw%" == "on" goto wait
if "%sw%" == "on " goto wait
goto refresh2
:lninput
REM -ILN,-B50,-U Geben Sie die Bibliothek ein ,-H7,-V0,-R1,-S
USELIB 97 PBD
if errorlevel 254 goto %menu%
goto libstart
REM --------------COMPILE / BATCH-PROGRAMM KONVERTIEREN
:convert
if not exist BAT2Q.EXE goto bat2qerr
set s=PB
set nr=1
set ojn=JA
set kjn=NEIN
:convert1
REM pbdtxt.98,-U Batch-Programm konvertieren ,-Y10,-H7,-V0,-R1,-S,-O
REM -NPN,-X24,-Y12,-H7,-V15,-R0,-O
REM -NQN,-X24,-Y13,-H7,-V15,-R0,-O
REM -NS,-X24,-Y14,-H7,-V15,-R0,-O
REM -NNR,-X24,-Y15,-H7,-V15,-R0,-O
REM -NOJN,-X24,-Y16,-H7,-V15,-R0,-O
REM -NKJN,-X24,-Y17,-H7,-V15,-R0,-O
USELIB 98-104 PBD
:convokay
REM pbdtxt.105,-X48,-Y15,-H7,-V15,-R0
USELIB 105 PBD
if errorlevel 133 goto lastmenu
if errorlevel 132 goto convinput
if errorlevel 14 goto lastmenu
if errorlevel 13 goto convbegin
if errorlevel 10 goto lastmenu
if errorlevel 9 goto convandern
goto lastmenu
:convandern
REM pbdtxt.106,-X60,-Y15,-H7,-V15,-R0
USELIB 106 PBD
if errorlevel 14 goto lastmenu
if errorlevel 13 goto convinput
if errorlevel 9 goto convokay
goto lastmenu
:convbegin
set o=
set k=
if "%ojn%" == "JA" set o=/o
if "%ojn%" == "ja" set o=/o
if "%kjn%" == "JA" set k=/k
if "%kjn%" == "ja" set k=/k
cls
command /c bat2q %pn% /s%s% /b%nr% /a%qn% %o% %k%
set o=
set k=
set s=
set nr=
set ojn=
set kjn=
if "%f%" == "both" goto both1
goto wait
REM -------------------COMPILE / BATCH-PROGRAMM KONVERTIEREN / ÄNDERN
:convinput
REM -IPN,-B49,-X24,-Y12,-V15,-R0,-O
REM -IQN,-B49,-X24,-Y13,-V15,-R0,-O
REM -IS,-B12,-X24,-Y14,-V15,-R0,-O
REM -INR,-B3,-X24,-Y15,-V15,-R0,-O
REM -IOJN,-B4,-X24,-Y16,-V15,-R0,-O
REM -IKJN,-B4,-X24,-Y17,-V15,-R0,-O
USELIB 107-112 PBD
goto convert1
REM -----------------COMPILE / BIBLIOTHEK ERSTELLEN
:build
if not exist PB.EXE goto pberr
if not exist PBLIB.SRC goto pbliberr
REM pbdtxt.113,-U Ändern oder bestätigen Sie die Quelldatei ,-Y16,-H7,-V0,-R1,-S,-O
REM -IQN,-B52,-X21,-Y17,-V15,-R0,-O
USELIB 113-114 PBD
if errorlevel 254 goto lastmenu
if "%qn%" == "" goto lastmenu
cls
command /c pb %qn% -e -q
goto wait
REM -------------------COMPILE / KONVERTIEREN UND ERSTELLEN
:makeboth
set f=both
goto convert
:both1
goto build
set f=
goto start
REM -------------COMPILE / BIBLIOTHEK EXPANDIEREN
:expand
if not exist LIB2TXT.COM goto liberr
REM pbdtxt.115,-U Ändern oder bestätigen Sie ,-H7,-V0,-R1,-S,-O
REM -ILN,-B52,-X21,-Y12,-V15,-R0,-O
REM -IDST,-B8,-X21,-Y14,-V15,-R0,-O
USELIB 115-117 PBD
if errorlevel 254 goto lastmenu
if "%ln%" == "" goto expand
if "%dst%" == "" goto expand
if not exist %ln% goto existerr
REM pbdtxt.118,-X30,-Y16,-H7,-V0,-S,-M
USELIB 118 PBD
if errorlevel 254 goto lastmenu
if errorlevel 2 set i=/i
cls
command /c lib2txt %ln% %dst% %i%
set dst=
set i=
goto wait
REM --------------COMPILE / BIBLIOTHEK ERWEITERN
:append
REM -ILN,-B50,-U Geben Sie die Bibliothek ein ,-Y11,-H7,-V0,-R1,-S,-O
USELIB 119 PBD
if errorlevel 254 goto lastmenu
if not exist %ln% goto existerr
if "%ln%" == "" goto append
:app
REM -ISRC,-B50,-U Geben Sie den (Quell-)Dateinamen ein ,-Y16,-H7,-V0,-R1,-S,-O
USELIB 120 PBD
if errorlevel 254 goto lastmenu
if not exist %src% goto existerr
if "%src%" == "" goto app
REM pbdtxt.121,-X50,-Y17,-H7,-V0,-R1,-S,-O,-M
USELIB 121 PBD
if errorlevel 254 goto refresh2
if errorlevel 3 goto app2
if errorlevel 2 goto app1
goto append
:app1
REM -IAL,-B65,-U Geben Sie die Argumente ein ,-Y21,-H7,-V0,-R1,-S,-O
USELIB 122 PBD
goto app3
:app2
set tmp=/q
:app3
cls
command /c pb %src% %al% -a%ln% -e %tmp%
set tmp=
goto wait
REM --------------------OPTIONS / KONFIRURATION ANLEGEN
:makeconf
REM -ICN,-B52,-U Geben Sie Pfad und Namen ein (Mit Endung: .BAT) ,-H7,-V0,-R1,-S
USELIB 123 PBD
if errorlevel 254 goto %menu%
if "%cn%" == "" goto %menu%
if not exist CONFIG.STD goto conferr
copy CONFIG.STD %cn% > NUL
goto %menu%
REM --------------------OPTIONS / KONFIGURATION BEARBEITEN
:editconf
cls
command /c %ed% %cn%
goto start
REM ---------------OPTIONS / KONFIGURATION LADEN
:loadconf
REM -ICN,-B52,-U Ist das die richtige Konfigurationsdatei? ,-H7,-V0,-R1,-S
USELIB 124 PBD
if errorlevel 254 goto %menu%
if "%cn%" == "" goto %menu%
if not exist %cn% goto existerr
REM -F,-C
USELIB 125 PBD
echo Ich konfiguriere den PROFIBATCH-Developer mit %cn%
call %cn%
set menu=main
goto start
REM ----------------OPTIONS / BILDSCHIRM AUFFRISCHEN
:newscreen
set menu=main
goto start
REM -----------------DOS / DOS-SHELL
:shell
cls
echo Geben Sie EXIT ein, um zum PROFIBATCH-Developer zurückzukehren!
command
set menu=main
goto start
REM ----------------DOS / DOS-KOMMANDOZEILE
:programm
REM -IARG,-B70,-U Geben Sie einen DOS-Befehl ein ,-H7,-V0,-R1,-S
USELIB 126 PBD
if errorlevel 254 goto %menu%
if errorlevel 1 goto exedos
:exedos
if "%ARG%" == "" goto %menu%
cls
command /c %ARG%
set arg=
goto wait
REM --------------DOS / DISKETTE KOPIEREN
:kopieren
set src=A
set dst=A
REM pbdtxt.127,-U Von hier... ,-X13,-Y5,-H7,-V0,-R1,-S,-O
REM -ISRC,-B1,-X24,-Y9,-H7,-V15,-R0,-O
USELIB 127-128 PBD
if errorlevel 254 goto lastmenu
REM pbdtxt.129,-U ...nach da ,-X13,-Y14,-H7,-V0,-R1,-S,-O
REM -IDST,-B1,-X24,-Y18,-H7,-V15,-R0,-O
USELIB 129-130 PBD
if errorlevel 254 goto lastmenu
REM -F,-C
USELIB 131 PBD
diskcopy %src%: %dst%:
set src=
set dst=
set menu=dos
goto start
REM ---------------------DOS / DISKETTE FORMATIEREN
:formatieren
set lw=A
REM pbdtxt.132,-U Formatieren ,-H7,-V0,-R1,-S,-O
REM -ILW,-B1,-X40,-Y14,-H7,-V15,-R0,-O
USELIB 132-133 PBD
if errorlevel 254 goto lastmenu
if "%lw%" == "A" goto form
if "%lw%" == "B" goto form
if "%lw%" == "a" goto form
if "%lw%" == "b" goto form
goto copywarn
:form
REM -F,-C
USELIB 134 PBD
format %lw%:
set lw=
set menu=dos
goto start
REM -----------------DOS / DATEI UMBENENNEN
:umbenennen
REM -ISRC,-B50,-U Geben Sie den ALTEN Namen ein ,-X10,-Y12,-H7,-V0,-R1,-S,-O
USELIB 135 PBD
if errorlevel 254 goto lastmenu
REM -IDST,-B50,-U Geben Sie den NEUEN Namen ein ,-X10,-Y17,-H7,-V0,-R1,-S,-O
USELIB 136 PBD
if errorlevel 254 goto lastmenu
if "%src%" == "" goto lastmenu
if "%dst%" == "" goto lastmenu
if not exist %src% goto existerr
ren %src% %dst%
set src=
set dst=
goto refresh2
REM --------------------DOS / COPY CON
:copycon
REM -ISRC,-B50,-U Geben Sie einen Dateinamen ein ,-H7,-V0,-R1,-S
USELIB 137 PBD
if errorlevel 254 goto %menu%
if "%src%" == "" goto %menu%
cls
echo Schreiben Sie, was Sie wollen und schließen Sie Ihre Eingaben mit
echo F6 und anschließendem RETURN ab.
echo -----------------------------------------------------------------
echo COPY CON: %src%
copy con %src%
set src=
set menu=main
goto start
rem ++++++++++++++++++++++++++++++++++++++++
rem Error-Meldungen
rem ++++++++++++++++++++++++++++++++++++++++
REM --------------Speziell für Diskcopy
:copywarn
set lw=
REM pbdtxt.138,-U ACHTUNG! ,-H4,-V15,-S,-P
USELIB 138 PBD
goto lastmenu
REM --------------Allgemeine NOT EXIST - Routine
:existerr
REM pbdtxt.139,-U ACHTUNG! ,-H4,-V15,-S,-P
USELIB 139 PBD
goto lastmenu
REM --------------Speziell für Konfiguration
:conferr
REM pbdtxt.140,-U ACHTUNG! ,-H4,-V15,-S,-P
USELIB 140 PBD
goto %menu%
REM --------------Speziell für BAT2Q
:bat2qerr
REM pbdtxt.141,-U ACHTUNG! ,-H4,-V15,-S,-P
USELIB 141 PBD
goto %menu%
REM --------------Speziell für PB.EXE
:pberr
REM pbdtxt.142,-U ACHTUNG! ,-H4,-V15,-S,-P
USELIB 142 PBD
goto %menu%
REM --------------Speziell für PBLIB.SRC
:pbliberr
REM pbdtxt.143,-U ACHTUNG! ,-H4,-V15,-S,-P
USELIB 143 PBD
goto %menu%
REM -------------Speziell für LIB2TXT
:liberr
REM pbdtxt.144,-U ACHTUNG! ,-H4,-V15,-S,-P
USELIB 144 PBD
goto %menu%
rem ++++++++++++++++++++++++++++++++++++++++
rem ENDE
rem ++++++++++++++++++++++++++++++++++++++++
:end
set menu=
set al=
set dy=
set ed=
set qn=
set ln=
set pn=
set xn=
set cn=
set src=
set dst=
set pn1=
set f=
set s=
set nr=
set ojn=
set kjn=
set sw=
set tmp=
set arg=
cls